﻿@model MSDAL.Sale

<div class="modal fade" id="sale-edytowanie-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">ID Sali: @Model.IDSali</h4>
            </div>
            <div class="modal-body">
                @using (Html.BeginForm("Edit", "Sales", FormMethod.Post))
                {
                    @Html.AntiForgeryToken()

                    @Html.ValidationSummary(true, "", new { @class = "text-danger" })
                    @Html.HiddenFor(model => model.IDSali)

                    <div class="form-group">
                        Nazwa Sali:
                        <div class="col-md-10">
                            @Html.EditorFor(model => model.NazwaSali, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.NazwaSali, "", new { @class = "text-danger" })
                        </div>
                    </div>

                    <div class="form-group">
                        Komentarz:
                        <div class="col-md-10">
                            @Html.EditorFor(model => model.Komentarz, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.Komentarz, "", new { @class = "text-danger" })
                        </div>
                    </div>

                    <div class="form-group">
                        Czy aktywna:
                        <div class="col-md-10">
                            <div class="checkbox">
                                @Html.EditorFor(model => model.CzyAktywna)
                                @Html.ValidationMessageFor(model => model.CzyAktywna, "", new { @class = "text-danger" })
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <input type="submit" value="Zapisz" class="btn btn-default" />
                    </div>
                }
            </div>
        </div>
    </div>
</div>
